package com.iweb.manager.service;

import com.iweb.manager.dao.ShowsMapper;
import com.iweb.manager.model.shows;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShowsServiceImpl implements ShowsService{

    @Autowired
    private ShowsMapper showsMapper;
    @Override
    public List<shows> selectAllShows() {
        return showsMapper.selectAllShows();
    }

    @Override
    public shows selectOneShow(int show_id) {
        return showsMapper.selectOneShow(show_id);
    }

    @Override
    public int addOneShow(shows show) {
        return showsMapper.addOneShow(show);
    }

    @Override
    public int deleteOneShow(int show_id) {
        return showsMapper.deleteOneShow(show_id);
    }

    @Override
    public int updateOneShow(shows show) {
        return showsMapper.updateOneShow(show);
    }
}
